package org.spring.springboot.app.base;

public enum Type {
    OperError(1, "操作失败"),
    AccessTokenVerfiyFail(100, "请求失效"),
    ParamValidateFail(101,"参数验证失败"),
    NotFoundError(102,"信息未找到"),
    DataDelError(103,"信息已删除"),
    PowerValidateFail(104,"权限验证失败"),
    ExistError(105,"信息已存在"),
    exception(500,"系统错误");
    ;

    private int code;
    private String message;

    Type(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
